package com.meritit.test;

import java.util.ArrayList;
import java.util.List;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class EndPointAutoConfig {

	private List<MemStatus> status = new ArrayList<>();
	
	@Bean
	public MyEndPoint myEndPoint() {
		return new MyEndPoint(status);
	}
	
	@Bean
	public MemCollector memCollector() {
		return new MemCollector(status);
	}
	
	public static void main(String[] args) {
		SpringApplication.run(EndPointAutoConfig.class, args);
	}
	
}
